package com.opensource.component.swagger;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Getter;
import lombok.Setter;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ZonLen since on 2022/7/6 下午3:30
 */
@RestController
@Api(value="土地增值税-视同销售台账", tags = "土地增值税-视同销售台账")
public class SwaggerDocController {

  @ApiOperation("swagger的demo接口")
  @PostMapping("/swagger/demo")
  public SwaggerRequest doc(@RequestBody SwaggerRequest req){
    return req;
  }

  @Getter
  @Setter
  @ApiModel("请求/响应实体")
  public static class SwaggerRequest{

    @ApiModelProperty("字段Property")
    private String a;

  }
}
